package com.xuan.temper.controller;

import com.xuan.temper.entity.ExponentialInfo;
import com.xuan.temper.service.ExponentialInfoService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @创建人： king xuan
 * @创建时间：2020/8/22
 * @描述：
 */
@RestController
@RequestMapping("/exponentialInfo")
public class ExponentialInfoController {

    @Autowired
    private ExponentialInfoService exponentialInfoService;

    @RequestMapping("/queryByCode")
    public ExponentialInfo select(@Param("stockCode") String stockCode ){
        return exponentialInfoService.queryByStockCode(stockCode);
    }

    @RequestMapping("/queryByName")
    public List<ExponentialInfo>  queryByName(@Param("name") String name ){
        return exponentialInfoService.queryByName(name);
    }

}
